package jgl.vajra.kingkong.part.mine.model;

import java.util.List;
import java.util.Map;

import io.reactivex.Observable;
import jgl.vajra.kingkong.bean.NicknamePageBean;
import jgl.vajra.kingkong.part.mine.contract.NicknamePageContract;
import jgl.vajra.kingkong.widget.manager.RxJavaHttpManager;
import jgl.vajra.kingkong.widget.manager.retrofit.RetrofitJsonManager;

public class NicknamePageModel extends NicknamePageContract.Model{
    @Override
    public Observable<List<NicknamePageBean>> getNicknameData(Map<String, Object> map) {
        return RetrofitJsonManager.getInstance().getApiService().getNicknameData(map)
                .compose(RxJavaHttpManager.applyTransformer());
    }

    @Override
    public Observable<Object> modifyInformation(Map<String, Object> map) {
        return RetrofitJsonManager.getInstance().getApiService().modifyInformation(map)
                .compose(RxJavaHttpManager.applyTransformer());
    }
}
